package validator

import (
	"errors"
	pb "grpc_demo/proto_gen"
)

func LoginValidator(in *pb.LoginRequest) error {
	if in.GetStuId() == "" || in.GetPassword() == "" {
		return errors.New("StuId Or Password empty")
	}
	return nil
}
